<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, no-cache, must-revalidate">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" lang="en">
    <meta name="robots" content="none">
    <meta name="copyright" content="JetBrains, Inc., http://www.jetbrains.com">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="stylesheet" type="text/css" media="all" href="../DefaultCSS/s.css">
    <title>Maven Project Helper</title>
</head>
<body id="IJ_help" class="template">

<div id="container">

<div id="header" style="background:url(../../DefaultCSS/img/bg_idea_big.jpg)">
    <h1>Maven Project Helper User Guide</h1>
</div>
<div id="content">

<div class="section">
    <h1>Introduce</h1>

    <p> Maven Project Helper will generate maven 2 project skeleton from various archetype. When it
        was installed, it add a &quot;New Maven Project...&quot; menu at File menu
        after &quot;New Project...&quot;. </p>

    <p><img width=184 height=97 src="img/menu.png"></p>

    <p> It also add Editor popup menu named &quot;maven&quot;.</p>

    <p><img src="img/menupop.png"></p>
</div>
<div class="section">
    <h1>Create your maven project</h1>

    <p>1. Just click File menu and select
        "New Maven Project...", a "Create Maven Project Wizard" dialog will display. Show
        as:</p>

    <p><img src="img/step1.png"></p>

    <p>2.1. Click "Search archetype..." button to search and select archetype from repository.</p>

    <p><img src="img/search.png"></p>

    <p>2.2. OR Fill in all field by hand.</p>

    <table class=ijTable border=0 cellspacing=1 cellpadding=3
           width="98%">
        <tr>
            <th width="29%" valign=top>
                Name
            </th>
            <th width="69%" valign=top>
                Description
            </th>
        </tr>
        <tr>
            <td width="29%" valign=top>
                <b>Archetype Artifact Id</b>
            </td>
            <td width="69%" valign=top>
                The Archetype Artifact Id to be used. Default value is <tt>maven-archetype-quickstart</tt>
            </td>
        </tr>
        <tr>
            <td width="29%" valign=top>
                <b>Archetype Group Id</b>
            </td>
            <td width="69%" valign=top>
                The Archetype Group Id to be used. Default value is <tt>org.apache.maven.archetypes</tt>
            </td>
        </tr>
        <tr>
            <td width="29%" valign=top>
                <b>Archetype Version</b>
            </td>
            <td width="69%" valign=top>
                The Archetype Version to be used. Default value is <tt>RELEASE</tt>
            </td>
        </tr>
        <tr>
            <td width="29%" valign=top>
                <b>Remote Repositories</b>
            </td>
            <td width="69%" valign=top>
                Other remote repositories available for discovering dependencies and extensions. This field is Optional.
            </td>
        </tr>
        <tr>
            <td width="29%" valign=top>
                <b>Group Id</b>
            </td>
            <td width="69%" valign=top>
                The Group Id of the project to be build.
            </td>
        </tr>
        <tr>
            <td width="29%" valign=top>
                <b> Artifact Id </b>
            </td>
            <td width="69%" valign=top>
                The Artifact Id of the project to be build.
            </td>
        </tr>
        <tr>
            <td width="29%" valign=top>
                <b>Project Root</b>
            </td>
            <td width="69%" valign=top>
                The base dir of project.
            </td>
        </tr>
    </table>

    <p>3. Click Next and waiting...when it down, the RESULT will displayed. If you want to ignore the result page, Just
        click Finish button.</p>

    <p><img src="img/result.png"></p>

</div>

<div class="section">
    <h1>Add dependency to you pom.xml file</h1>

    <p>1. Righ click editor and select "Maven|Add dependency" will popup a Search dialog. When you type your key word,
        background search will be execute and search result will display</p>

    <p><img src="img/searchtypeing.png"></p>

    <p>2. select demanded artifacts and click OK. </p>

    <p><img src="img/searchselecting.png" alt="select artifacts"/></p>

    <p> dependency will be add into pom.xml. </p>

    <p><img src="img/dependencyadded.png" alt="add dependency"/></p>
</div>

<div class="section">
    <h1>Reindex local repository</h1>

    <p>When you import or build maven project using IDEA's maven plugin. local repository will be updated. To make those change are
    available for search dialog, you need to reindex the local repository.</p>

    <p>1. Right click Editor and select "maven|reindex local repository"</p>

    <p><img src="img/reindex.png" alt="reindex"></p>
    
    <p>reindex job will be execute in background, a minute later. search dialog will find new updated artifacts.</p>
</div>
<div class="section">
    <h1>Environment</h1>

    <p>You need to install Maven 2.0.7 and set the M2_HOME system environment as maven’s README said.</p>
</div>

</div>

</div>
<div id="footer">
    <p>

        <b>Copyright &copy; 2007 Fanhuagang. All rights reserved</b>

    </p>
</div>

</body>

</html>
